home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_c
/
cuj0696.zip
/
DWYER.ZIP
/
COUPON.TST
/
DIALOG.LST
< prev
next >
Wrap
File List
|
1995-12-07
|
1KB
|
40 lines
C O U P O N T E S T
Enter Starting Seed (-1 for time):
Enter Generator Desired:
A = ANSI (Plauger)
C = Dwyer Combination (CUJ 6/95)
F = Math77 (Fortran)
H = Knuth Line 27
K = Knuth Line 26
L = Linear Shift Register
M = Moshier drand()
P = Dwyer Portable (CUJ 6/95)
R = Run-Time Lib rand():
S = Knuth Subtractive Generator
4 = Approximate-Factoring Algorithm # 4
Else Run-Time Lib rand():
Starting Seed = 37147
Generator = Dwyer Combination Generator (CUJ 6/95)
Enter Number Unique Integers in a Coupon [5-25]:
Number Entered: 5 (Number Unique Integers in a Coupon)
Test Value Used: 5
Enter Maximum Segment Length [11-100]:
Number Entered: 11 (Maximum Segment Length)
Test Value Used: 11
Enter Minimum Cell Expectation [5-100]:
Number Entered: 5 (Minimum Cell Expectation)
Test Value Used: 5
How Many Coupons Are To Be Collected? [400 ...]:
Number Entered: 400 (Number of Coupons to be Counted)
Test Value Used: 400
Failure Count = 612
A Complete Coupon Should Have Been
Collected Within This Many Variates.
Kolmogorov-Smirnov Statistics and Probabilities on Chi-Square Data
K(100)+ = 0.041883 (Knuth) or 31.483620%
K(100)- = 0.058189 (Knuth) or 51.080306%
This Run Required 455145 Random Numbers